package com.guosheng.test20181219;

public class NbaObserver implements Observer {

    @Override
    public void update(Subject subject, Object data) {
        System.out.println("我是" + subject.getClass().getSimpleName()+", "+data+"别看NBA了");
    }

    public void shut(){
        System.out.println("老师来了也阻挡不了我看nba的决心");
    }
}
